# -*- coding: utf-8 -*-
# @Time        :2025/4/9 18:01
# @Author      :文刀水寿
# @File        : exts.py
"""
 @Description :
"""
# exts.py  ：插件管理


# 1. 导入第三方插件
from flask_migrate import Migrate
from flask_sqlalchemy import SQLAlchemy

# 2. 初始化
db = SQLAlchemy()  # ORM
migrate = Migrate()  # 数据迁移


# 3. 和app对象绑定
def init_exts(app):
    db.init_app(app=app)
    migrate.init_app(app=app, db=db)
